package com.wanmait.wanmarecruit.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.pagehelper.PageInfo;
import com.wanmait.wanmarecruit.entity.City;
import com.wanmait.wanmarecruit.entity.Position;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* Created by Mybatis Generator 2022/09/19
*/
public interface PositionMapper extends BaseMapper<Position> {

    List<Position> selectPosition(@Param("position") Position position,@Param("companyId") Integer companyId);

    List<Position> selectRandomEightPosition();

    List<Position> selectAllPositionByCompanyId(Integer companyId);

    List<Position> selectPositionByThings(@Param("position") Position position, @Param("city")City city, @Param("positionTypeId")Integer positionTypeId, @Param("workExperienceTypeIds")Integer[] workExperienceTypeIds, @Param("educationIds")Integer[] educationIds, @Param("salaryIds")Integer[] salaryIds, @Param("about")Integer about);

    Position selectPositionById(Integer id);

    List<Position> selectFourPositionByPositionTypeSecondId(Integer id);

    List<Position> selectAllNotEnablePositions();

    void updateEnablePosition(Integer id);

    void deleteOnePosition(Integer id);
}